﻿using Business.Common;
using Business.PubInfo;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class FilesList : System.Web.UI.Page
{
    public string strContent = string.Empty;
    PubInfoManage pimTemp = new PubInfoManage();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            GetAllFiles();

        }
    }

    private void GetAllFiles()   //显示一、二级导航标题
    {
        List<string> lstFiles = FileOperation.GetDir(Server.MapPath("FileDown/"));

        for (int i = 0; i < lstFiles.Count;i++ )
        {
            strContent += string.Format(@"<p><span>{1}、{0}</span><a href='../FileDown/{0}'><i></i>下载</a></p>", lstFiles[i], i + 1);
        }
    }
}